﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SMG.Domain.Specifications;
using SMG.Domain.Model.Program;

namespace SMG.Domain.Specifications.Program
{
    public class DeviceDIdEqualSpecification : Specification<Device>
    {
        private readonly String deviceId;
        public DeviceDIdEqualSpecification(String deviceId)
        {
            this.deviceId = deviceId;
        }

        public override global::System.Linq.Expressions.Expression<Func<Device, bool>> GetExpression()
        {
            return b => b.DeviceId == deviceId;
        }
    }
}
